package com.bee.plus.util;

public class ConversationThreadLocal {

    private static final ThreadLocal<Conversation> conversationThreadLocal=new ThreadLocal<>();


    public static void addCurrentConversation(Conversation conversation){
        conversationThreadLocal.set(conversation);
    }

    public static Conversation getCurrentConversation(){
       return conversationThreadLocal.get();
    }

    public static void remove(){
        conversationThreadLocal.remove();
    }


}
